<template>
  <Table :loading />
</template>

<script setup lang="ts">
import { createTableColumns } from "../point/table-config";

const loading = ref(true);
const [Table, { setTableData }] = useTable(
  createTableColumns({
    del: () => {},
    redo: () => {},
  })
);

onMounted(() => {
  setTableData([
    {
      id: "1",
      title: "测试",
      people: 12,
      createTime: "2023-04-10 22:00:00",
      type: {
        typeName: "测试",
      },
      operator: {
        userName: "测试",
        userAvatar: "",
      },
      status: 0,
    },
    {
      id: "1",
      title: "测试",
      people: 12,
      createTime: "2023-04-10 22:00:00",
      type: {
        typeName: "测试",
      },
      operator: {
        userName: "测试",
        userAvatar: "",
      },
      status: 0,
    },
  ]);
  setTimeout(() => {
    loading.value = false;
  }, 3000);
});
</script>

<style scoped></style>
